package com.example.hospital.api.common.handler;

/**
 * ClassName: ExceptionEnum
 * Package: com.example.hospital.api.common.handler
 * Description:
 *
 * @Author JJQ
 * @create 2024/7/22 0022 20:41
 * @Version 1.0
 */
public enum ExceptionEnum implements BaseErrorInfoInterface {
    SUCCESS("2000","成功!"),
    BODY_NOT_MATCH("4000","请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH("4001","请求的数字签名不匹配!"),
    NOT_FOUND("4004", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("5000", "服务器内部错误!"),
    SERVER_BUSY("5003","服务器正忙，请稍后再试!"),
    DB_ERROR("1000","数据库操作异常");
    private final String resultCode;
    private final String ResultMsg;

    ExceptionEnum(String resultCode, String resultMsg){
        this.resultCode = resultCode;
        this.ResultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return this.resultCode;
    }

    @Override
    public String getResultMsg() {
        return this.ResultMsg;
    }
}
